package chapter15.exercise;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class GenericMethods {
    public <T, Y, U> void f(T t, Y y, String s) {
        System.out.println(t.getClass().getName() + " " + y.getClass().getName() + " " + s.getClass().getName());
    }

    public static void main(String[] args) {
        GenericMethods method = new GenericMethods();
        method.f(1.0f, 1, "123");
        new ArrayList();
        List<String> emptyList = Collections.emptyList();
    }
}
